package com.foreveross.law.controller.user;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/make")
public class UEditorController {

	@RequestMapping(value="/ueditor", method=RequestMethod.POST)
	public ModelAndView rander(HttpServletRequest request, ModelMap modelMap){
		String content = request.getParameter("content");
        String content_s=content.replace("(文本框)","<input type=\"text\" class=\"line_input\"/>");
		System.err.println("content_s ============ "+content_s);
		modelMap.put("ct", content_s);
		return new ModelAndView("preview");
	}
	@RequestMapping(value="/person", method=RequestMethod.GET)
	//申购人选人页面
	public ModelAndView rander_2(HttpServletRequest request, ModelMap modelMap){
		System.out.println("申购人选人页面============");
		return new ModelAndView("person_user");
	}
	
	
	
}
